package autowiring.bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AutoWiringTest {
	public static void main( String[] args ) throws PerformanceException {
		ApplicationContext ctx 
			= new ClassPathXmlApplicationContext( "autowiring/bean/ApplicationContext.xml" );
		//Performer performer = ( Performer ) ctx.getBean( "kenny" );
		//performer.perform();		
		
		Performer performer = ( Performer ) ctx.getBean( "duke" );
		performer.perform();		
		
	}	
}
